export default [
    {
        path : '/home',
        meta : { permission : '' },
        component : () => import(/* webpackChunkName: "layout" */ "../../components/layouts/HomeLayout"),
        children : [
            {
                path :  'dashboard',
                name : 'dashboard',
                meta :  { title : '控制台',permission : '' },
                component : () => import(/* webpackChunkName: "views" */ "../../views/dashboard/Index"),
                children : [
                    {
                        path : 'add/client',
                        name : 'addClient',
                        meta :  { title : '创建客户端',permission : '' },
                        component : () => import(/* webpackChunkName: "views" */ "../../views/dashboard/AddClient"),
                    }
                ]
            }
        ]
    },{
        path :  '/',
        meta :  { title : '首页' },
        redirect : { name : 'dashboard' },
        component : () => import(/* webpackChunkName: "layout" */ "../../components/layouts/BasicLayout"),
        children :  [
            {
                path :  'register',
                name : 'register',
                meta :  { title : '账号注册' },
                component : () => import(/* webpackChunkName: "views" */ "../../views/register/Index")
            },{
                path :  'login',
                name : 'login',
                meta :  { title : '账号登录' },
                component : () => import(/* webpackChunkName: "views" */ "../../views/login/Index")
            },{
                path :  'logout',
                name : 'logout',
                meta :  { title : '退出登录' },
                component : () => import(/* webpackChunkName: "views" */ "../../views/logout/Index")
            },{
                path : 'authorize',
                name : 'authorize',
                meta :  { title : '第三方授权',permission : '' },
                component : () => import(/* webpackChunkName: "views" */ "../../views/authorize/Index")
            }
        ]
    },
];
